<!DOCTYPE html holiday "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>节假日</title>
    <link href="${base}/resources/css/common.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="${base}/resources/js/jquery.js"></script>
    <script type="text/javascript" src="${base}/resources/js/common.js"></script>
    <script type="text/javascript" src="${base}/resources/js/list.js"></script>
[#--<script type="text/javascript">--]
[#--$().ready(function () {--]
[#--var date = $(".date");--]
[#--date.each(function () {--]
[#--var dayStr = $(this).siblings(".days").text();--]
[#--var d = $(this).text();--]
[#--var d1 = new Date(d);--]
[#--var days = d1.getDate() - parseInt($.trim(dayStr));--]
[#--d1.setDate(days);--]
[#--var dateStr = d1.getFullYear() + "-" + d1.getMonth() + "-" + d1.getDate();--]
[#--$(this).siblings(".addDate").html(dateStr);--]
[#--});--]
[#--});--]

[#--</script>--]
</head>
<body>
<div class="path">
    <a href="${base}/common/index.html">首页</a> &raquo; 专业维护 <span>(总数：${page.total})</span>
</div>
<form id="listForm" action="list.html" method="get">
    <div class="bar">
        <a href="add.html" class="iconButton">
            <span class="addIcon">&nbsp;</span>新增
        </a>

        <div class="buttonWrap">
            <a href="javascript:;" id="deleteButton" class="iconButton">
                <span class="deleteIcon">&nbsp;</span>删除
            </a>

        </div>
    </div>
    <table id="listTable" class="list">
        <tr>
            <th class="check">
                <input type="checkbox" id="selectAll"/>
            </th>
            <th>
                <a href="javascript:;" class="sort" name="name">专业编号</a>
            </th>
            <th>
                <a href="javascript:;" class="sort" name="code">专业名称</a>
            </th>
            <th>
                <a href="javascript:;" class="sort" name="date">专业学分</a>
            </th>
            <th>
                <span>操作</span>
            </th>
        </tr>
    [#list professions as map]
        <tr>
            [#list map as pro ]
                <td>
                    <input type="checkbox" name="ids" value="${pro.id}"/>
                </td>
                <td>
                ${pro.profession_no}
                </td>
                <td>
                ${pro.profession}
                </td>
                <td>
                ${pro.credit}
                </td>
                <td>
                    <a href="edit.html?id=${pro.id}">[编辑]</a>
                </td>
            [/#list]
        </tr>
    [/#list]
    </table>
</form>
</body>
</html>